package cn.edu.zzti.mats.web.strust2.atcion;

import cn.edu.zzti.base.web.struts2.action.AbstractCRUDAction;
import cn.edu.zzti.mats.model.Mat;
import cn.edu.zzti.mats.service.MatManager;

public class MatAction extends AbstractCRUDAction<Mat, Long, MatManager> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2569579757690393026L;

	MatManager matManager;

	public void setMatManager(MatManager matManager) {
		this.manager = matManager;
	}

	// Handles /orders/{id} PUT requests
	public String update() {
		this.manager.save(model);
		return "update";
	}

}
